/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.vunguyen.service;

import java.util.List;

import com.vunguyen.model.Bomon;
import com.vunguyen.model.Congvan;
import com.vunguyen.model.Congvanden;
import com.vunguyen.model.Giangvien;
import com.vunguyen.model.Phancongcongvanden;
import com.vunguyen.model.PhancongcongvandenBomon;
import com.vunguyen.model.PhancongcongvandenGiangvien;


public interface CongVanService {
    public List<Congvan> getCongVan();
    public List<Congvanden> getCongVanDen();
    public List<Phancongcongvanden> getPhancongcongvanden();
    public void addCongVan(Congvan congvan);
    public void addCongVanDen(Congvanden congvanden);
    public Congvan getCongvanById(String idcongvan);
    public List<Congvan> getListCongvanById(String idcongvan);
	void updateCongVan(Congvan congvan, String idCongVan);
	public List<Giangvien> getGiangvien(int idcanbo);
	public void addPhanCongCongVanDen(Phancongcongvanden phancongcongvanden);
	public List<Bomon> getBoMon();
	public List<Phancongcongvanden> getPhanCongbyId(String idcongvanden);
	public List<Phancongcongvanden> getPhanCongbyId(String idcongvanden, String nguoiphancong);
    public void updatePhanCong(Phancongcongvanden phancongcongvanden, int idphancong);
    public void xacNhanHoanTat(Phancongcongvanden phancongcongvanden, int idphancong);
    public void themPhancongcongvandenGiangvien(PhancongcongvandenGiangvien phancongcongvandenGiangvien);
    public void themPhancongcongvandenBomon(PhancongcongvandenBomon phancongcongvandenBomon);
    //Lay cong van den giang vien
    public List<PhancongcongvandenGiangvien> layPhancongcongvandenGiangvien();
    //Lay cong van den bo mon
    public List<PhancongcongvandenBomon> layPhancongcongvandenBomon();
    //get cong van den by id
    public List<Congvanden> getCongvandenById(String idcongvanden);
    
}
